#！/bin/bash
for mount_p in `df | sed '1d'| grep -v 'tmpfs'|awk '{print $NF}'`
do
	touch ${mount_p}/testfile && rm -f ${mount_p}/testfile
	if [ $? -eq 0 ];then
		echo "磁盘分区读写正常"
	else
		echo "磁盘分区读写异常"
	fi
done
